﻿using System.Collections.Generic;

namespace FieldTools.Entity.PluginManage
{
    /// <summary>
    /// post请求内容
    /// </summary>
    public class PostInfo
    {
        /// <summary>
        /// post请求地址
        /// </summary>
        public string Url { get; set; }
        /// <summary>
        /// post请求body部分，json
        /// </summary>
        public string BodyJson { get; set; }
        /// <summary>
        /// 请求头
        /// </summary>
        public string Headers { get; set; }
        /// <summary>
        /// body类型,发送到本平台务必使用"application/json"
        /// </summary>
        public string BodyType { get; set; }
    }

    public class GetInfo
    {
        /// <summary>
        /// Get请求地址,需要包含所有参数，详见http请求相关规则
        /// </summary>
        public string Url { get; set; }
        /// <summary>
        /// 请求头
        /// </summary>
        public Dictionary<string, string> Headers { get; set; }
    }
}
